package com.mysiteforme.wx.mp.controller;

import com.mysiteforme.bean.ResponseBean;
import com.mysiteforme.wx.mp.bs.CallBS;
import com.mysiteforme.user.dto.UserDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wx/call")
public class CallController {
    @Autowired
    private CallBS callBS;
    @GetMapping("get")
    public UserDTO get(){
        return callBS.getUser();
    }


    @GetMapping("getBean")
    public ResponseBean getBean(){
         ResponseBean responseBean = callBS.getBean();
         return responseBean;
    }

    @GetMapping("getDict")
    public ResponseBean getDict(){
        ResponseBean responseBean = callBS.getDict();
        return responseBean;
    }
}
